package com.whfc.mach.dto;

import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @Description: 油量
 * @author: xugcheng
 * @version: 1.0
 * @date: 2019/11/16 14:26
 */
@Data
public class Oil implements Serializable {

    /**
     * 硬件时间
     */
    private Date time;

    /**
     * 工作状态
     */
    private Integer workState;

    /**
     * 油位
     */
    private Integer oilPos;

    /**
     * 油箱状态(0-无,1-关闭 2-打开 )
     */
    private Integer oilState;

    /**
     * 压力值
     */
    private Double pressure;

    /**
     * 剩余油量(L)
     */
    private Double remainOil;

    /**
     * 剩余油量百分比
     */
    private Double remainOilPercent;

    /**
     * 经度
     */
    private Double lng;

    /**
     * 纬度
     */
    private Double lat;

    /**
     * 地址
     */
    private String location;

    public Oil() {
    }

    public Oil(Date time, Integer workState, Integer oilPos) {
        this.time = time;
        this.workState = workState;
        this.oilPos = oilPos;
    }

    public Oil(Date time, Integer workState, Double pressure) {
        this.time = time;
        this.workState = workState;
        this.pressure = pressure;
    }

    public Oil(Date time, Integer workState, Double pressure, Integer oilPos) {
        this.time = time;
        this.workState = workState;
        this.pressure = pressure;
        this.oilPos = oilPos;
    }
}
